#include "a.hpp"
#include <iostream>     // for std::cout
#include <cmath>        // for std::sin

void a::print_sequence() const
{
    double a = 0;
    for(auto zi : z) { // C++11: iterate over all elements in z and call them zi
        a += sin(b*zi + c);  // C++11: auto deduces the compile time known type
        std::cout << a << std::endl;
    }
}

// note: no repeat of the static here....
const double a::z[a::N] = {0.0, 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0};
